// Return a persons age given the year they were born
// Date 11:08 AM 18-Oct-16
// By Ben a.k.a DreamVB

#include <iostream>
#include <Windows.h>
#include <iomanip>

using namespace std;
using std::cout;
using std::endl;
using std::cin;

int main(int argc, char *argv[]){
	int yearborn = 0;
	int curyear = 0;
	int age = 0;
	SYSTEMTIME st;
	
	//Get system date
	GetSystemTime(&st);

	cout << "Enter the year you wer born : ";
	cin >> yearborn;
	//Get age
	age = (st.wYear-yearborn);
	cout << "You are " << age << " year old." << endl;

	system("pause");
	return 0;
}